package com.liugh.service.zhongche;

import com.baomidou.mybatisplus.plugins.Page;
import com.liugh.entity.standard.Announcement;
import com.liugh.model.DownloadModel;

/**
 * Created by Fatao on 2018/10/31 .
 */
public interface IAnnouncementService {


    Announcement addAnnouncement(Announcement announcement);

    Announcement updateAnnouncementById(Announcement announcement);

    int delAnnouncementById(int id);

    Announcement getAnnouncementById(int id);


    Page<Announcement> getAllAnnouncement(Page<Announcement> page);

    /**
     * 下载附件时返回附件的存储位置及原始文件名
     * @param id
     * @return
     */
    DownloadModel downloadAttachment(int id);
}
